home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / GRAHAM / XA_6S.ZIP / SOURCE / FULLWIDG.C < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-12  |  1.2 KB  |  50 lines

  1. /*
  2.  * XaAES - XaAES Ain't the AES
  3.  *
  4.  * A multitasking AES replacement for MiNT
  5.  *
  6.  */
  7.  
  8. #include <OSBIND.H>
  9. #include <VDI.H>
  10. #include "XA_TYPES.H"
  11. #include "XA_DEFS.H"
  12. #include "XA_GLOBL.H"
  13. #include "KERNAL.H"
  14. #include "K_DEFS.H"
  15. #include "GRAF_MOU.H"
  16. #include "MESSAGES.H"
  17. #include "C_WINDOW.H"
  18. #include "RECTLIST.H"
  19. #include "ALL_WIDG.H"
  20. #include "STD_WIDG.H"
  21. #include "SYSTEM.H"
  22. #include "OBJECTS.H"
  23.  
  24. /*======================================================
  25.     FULL WIDGET BEHAVIOUR
  26. ========================================================*/
  27. /* Default full widget behaviour - just send a WM_FULLED message to the client that */
  28. /* owns the window. */
  29. short click_full(XA_WINDOW *wind, XA_WIDGET *widg)
  30. {
  31.     send_app_message(wind->owner, WM_FULLED, 0, wind->handle, 0, 0, 0, 0);
  32.     return TRUE;
  33. }
  34.  
  35. short display_full(XA_WINDOW *wind, XA_WIDGET *widg)
  36. {
  37.     short x,y;
  38.  
  39.     rp_2_ap(wind, widg, &x, &y);    /* Convert relative coords and window location to absolute screen location */
  40.  
  41.     if (widg->stat==XAW_PLAIN)
  42.         def_widgets[WIDG_FULL].ob_state&=~SELECTED;
  43.     else
  44.         def_widgets[WIDG_FULL].ob_state|=SELECTED;
  45.     
  46.     display_object(def_widgets,WIDG_FULL,x,y);
  47.  
  48.     return TRUE;
  49. }
  50.